class CreatePlaneTaxes < ActiveRecord::Migration
  def self.up
    create_table :plane_taxes do |t|
      t.string :plane_type          ,:limit => 16
      t.integer :tax                ,:limit => 2 ,:default => 0 
      t.integer :is_locked          ,:limit => 1 ,:default => 0 #是否管理会要锁定 1为True 0为False
      t.timestamps
    end
    PlaneTax.create(:plane_type =>'737',:tax => 50)
    PlaneTax.create(:plane_type =>'777',:tax => 80)
    PlaneTax.create(:plane_type =>'320',:tax => 40)
  end
  
  def self.down
    drop_table :plane_taxes
  end
end
